#include <am.h>
#include <klib-macros.h>
#include <klib.h>
#include <uart.h>

#define ARR_SIZE 0x2000
uint16_t data[ARR_SIZE];

int main(const char *args) {
//  uart_set_baud(115200,100000000);
//  uart_set_baud(115200,50000000);
//  uart_set_baud(115200,25000000);
//  uart_tr_init();
  putstr("START TEST...");
    uint16_t* data = (void*)(0x80200000);
  //  uint16_t* data = (void*)(0xfc200000);
    for(int i = 0; i < ARR_SIZE / sizeof(uint16_t); i++){
  data[i] = i;
			    }
   putstr("ALL DATA PREPARED\n");
        for(int i = 0; i < ARR_SIZE / sizeof(uint16_t); i++){
	       assert(data[i] == i);
	  }
   putstr("ALL TESTS PASSED!!\n");
   return 0;
}
